package com.example.cstr.mapper;

import com.example.cstr.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserMapper {
    int deleteByPrimaryKey(Integer workId);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Integer workId);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    List<User> selectAllUser();

    //    User selectByUserNameAndUserPwd(@Param("userName") String userName, @Param("userPwd") String userPwd);
    User selectByworkIdAndUserPwd(@Param("workId") Integer workId, @Param("userPwd") String userPwd);

    List<User> sortAllUser();
}